package com.green.business.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * Created with IntelliJ IDEA.
 * @Author: Green
 * @Date: 2021/11/15/17:22
 * @Description: 
 */


@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "bus_goods")
public class Goods implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField(value = "goodsname")
    private String goodsname;

    @TableField(value = "produceplace")
    private String produceplace;

    @TableField(value = "size")
    private String size;

    @TableField(value = "goodspackage")
    private String goodspackage;

    @TableField(value = "productcode")
    private String productcode;

    @TableField(value = "promitcode")
    private String promitcode;

    @TableField(value = "description")
    private String description;

    @TableField(value = "price")
    private Double price;

    @TableField(value = "number")
    private Integer number;

    @TableField(value = "dangernum")
    private Integer dangernum;

    @TableField(value = "goodsimg")
    private String goodsimg;

    @TableField(value = "available")
    private Integer available;

    @TableField(value = "providerid")
    private Integer providerid;

    @TableField(value = "memberprice")
    private Integer memberprice;




    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @TableField(value = "productiondate")
    private Date productiondate;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @TableField(value = "expiration")
    private Date expiration;

    @TableField(value = "opretor")
    private String opretor;

    @TableField(exist = false)
    private String providername;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_GOODSNAME = "goodsname";

    public static final String COL_PRODUCEPLACE = "produceplace";

    public static final String COL_SIZE = "size";

    public static final String COL_GOODSPACKAGE = "goodspackage";

    public static final String COL_PRODUCTCODE = "productcode";

    public static final String COL_PROMITCODE = "promitcode";

    public static final String COL_DESCRIPTION = "description";

    public static final String COL_PRICE = "price";

    public static final String COL_NUMBER = "number";

    public static final String COL_DANGERNUM = "dangernum";

    public static final String COL_GOODSIMG = "goodsimg";

    public static final String COL_AVAILABLE = "available";

    public static final String COL_PROVIDERID = "providerid";
}